//
//  Digital.m
//  Pacific_Computer
//
//  Created by dlios on 14-12-17.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Digital.h"

@implementation Digital

- (id)initWithDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        
        //利用kvc给成员变量赋值
        [self setValuesForKeysWithDictionary:dic];
        
    }
    return self;
}

- (id)valueForUndefinedKey:(NSString *)key
{
    return nil;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"手机"]) {
        self.Mobile = value;
        
    }else if ([key isEqualToString:@"相机"]){
        self.Camera = value;
        
    }else if ([key isEqualToString:@"笔记本"]){
        self.NoteBook = value;
        
    }else if ([key isEqualToString:@"超极本"]){
        self.UltraBook = value;
        
    }else if ([key isEqualToString:@"平板电脑"]){
        self.TabletPc = value;
        
    }else if ([key isEqualToString:@"摄像机"]){
        self.Vidicon = value;
    }
}


@end
